import Input from "@/components/Input";
import { InputNumber } from "@nutui/nutui-react-taro";

const typeConfig = {
  ryp: [
    {
      label: "保质期（天）",
      name: "shelfLife",
      formRender: <InputNumber defaultValue={10} min={1} max={10000} />,
      rules: [
        {
          required: true,
          message: "请输入",
        },
      ],
    },
    {
      label: "过期提前提醒/天",
      name: "expiredDays",
      formRender: <InputNumber defaultValue={10} min={1} max={10000} />,
    },
    {
      label: "预计使用天数",
      name: "drainedDays",
      formRender: <InputNumber defaultValue={10} min={1} max={10000} />,
    },
    {
      label: "注意事项",
      name: "zysx",
      formRender: <Input />,
    },
  ],
  fs: [
    {
      label: "颜色",
      name: "ys",
      formRender: <Input />,
      rules: [
        {
          required: true,
          message: "请输入",
        },
      ],
    },
    {
      label: "尺寸",
      name: "cc",
      formRender: <Input />,
      rules: [
        {
          required: true,
          message: "请输入",
        },
      ],
    },
    {
      label: "洗涤方式",
      name: "xdfs",
      formRender: <Input />,
    },
    {
      label: "面料",
      name: "ml",
      formRender: <Input />,
    },
    {
      label: "款式",
      name: "ks",
      formRender: <Input />,
    },
    {
      label: "适用季节",
      name: "syjj",
      formRender: <Input />,
      rules: [
        {
          required: true,
          message: "请输入",
        },
      ],
    },
    {
      label: "部位",
      name: "bw",
      formRender: <Input />,
      rules: [
        {
          required: true,
          message: "请输入",
        },
      ],
    },
  ],
  jj: [
    {
      label: "风格",
      name: "fg",
      formRender: <Input />,
    },
    {
      label: "尺寸",
      name: "cc",
      formRender: <Input />,
    },
    {
      label: "重量",
      name: "zl",
      formRender: <Input />,
    },
    {
      label: "材料",
      name: "cl",
      formRender: <Input />,
    },
    {
      label: "颜色",
      name: "ys",
      formRender: <Input />,
    },
    {
      label: "产地",
      name: "cd",
      formRender: <Input />,
    },
    {
      label: "注意事项",
      name: "zysx",
      formRender: <Input />,
    },
  ],
};

export const config = {
  "1772277730249379841": typeConfig.ryp,
  "1772277774465732609": typeConfig.ryp,
  "1772277808527675393": typeConfig.ryp,
  "1772277837774557185": typeConfig.fs,
  "1772277870523682817": typeConfig.jj,
  "1772277905051193346": typeConfig.jj,
  "1772277934977552385": typeConfig.jj,
};

export default config;
